gdk/wayland: Add an API to inhibit and uninhibit idle
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>
Tue, 14 Jul 2020 19:18:03 +0000 (21:18 +0200)
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>
Tue, 14 Jul 2020 19:47:22 +0000 (21:47 +0200)
commit74a4432688bd33a203849c696a37d40bf0fd9aaf
tree4a761fa64b4ca4fc66211b60630715d415f247b7
parent38cce2bb181e54143bef1c3510cd81331e40468e
gdk/wayland: Add an API to inhibit and uninhibit idle

This uses the idle-inhibit protocol from wayland-protocols, to attach an
inhibitor to the GdkSurface.  The inhibit function can be called as many
times as the user wants, but the uninhibit function MUST be called as
many times to unset the idle inhibition.

This has been tested on Sway.
gdk/wayland/gdkdisplay-wayland.c
gdk/wayland/gdkdisplay-wayland.h
gdk/wayland/gdksurface-wayland.c
gdk/wayland/gdkwaylandsurface.h
gdk/wayland/meson.build